home *** CD-ROM | disk | FTP | other *** search
/ CU Amiga Super CD-ROM 18 / CU Amiga Magazine's Super CD-ROM 18 (1997)(EMAP Images)(GB)[!][issue 1998-01].iso / CUCD / Programming / ModemLink / Source / ModemLinkAPI.c < prev    next >
C/C++ Source or Header  |  1997-10-24  |  1KB  |  42 lines

  1. /*
  2. ** NAME: ModemLinkAPI.c
  3. ** DESC: These routines provide a standard device like interface, yet should
  4. **       never be used when dealing with the actual device.  Since modemlink
  5. **       can be compiled as a linked lib as well, these routines are necessary
  6. **       to allow for an identical API as the standard device interface.  Only
  7. **       use these when using the linked lib version of modemlink (use
  8. **       exec.library routines when using the device).
  9. **
  10. ** AUTHOR:        DATE:       DESCRIPTION:
  11. ** ~~~~~~~~~~~~~~ ~~~~~~~~~~~ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  12. ** Mike Veroukis  13 Mar 1997 Created
  13. */
  14.  
  15.  
  16. #include <exec/io.h>
  17. #include <exec/ports.h>
  18. #include <exec/nodes.h>
  19. #include <dos/dos.h>
  20.  
  21. #include <proto/exec.h>
  22.  
  23. #include <stdio.h>
  24.  
  25. #include "ModemLinkAPI.h"
  26. #include "Link.h"
  27.  
  28. BYTE ML_DoIO(struct IORequest *IOReq)
  29. {
  30.   IOReq->io_Flags |= IOF_QUICK;
  31.   ML_BeginIO(IOReq);
  32.   WaitIO(IOReq);
  33.  
  34.   return IOReq->io_Error;
  35. }
  36.  
  37. void ML_SendIO(struct IORequest *IOReq)
  38. {
  39.   IOReq->io_Flags = 0;
  40.   ML_BeginIO(IOReq);
  41. }
  42.